#include "RIVIAFileImporterMgr.h"

RIVIAFileImporterMgr *RIVIAFileImporterMgr::getInstance()
{
    static RIVIAFileImporterMgr mgr;
        return &mgr;
}

void RIVIAFileImporterMgr::addImporter(const QString &strFileType, RIVIAFileImporterBase *pImporter)
{
    m_oImportermap.insert(strFileType, pImporter);
}

RIVIAFileImporterBase *RIVIAFileImporterMgr::getImporter(const QString &strFileType)
{
    return m_oImportermap.value(strFileType, nullptr);
}

RIVIAFileImporterMgr::RIVIAFileImporterMgr()
{

}

RIVIAFileImporterMgr::~RIVIAFileImporterMgr()
{

}
